package mybatis.mapper;

import mybatis.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    TbUser findById(Long id);
    TbUser findByUserNameAndPassword(@Param("username") String username,@Param("pwd") String pwd);

    List<TbUser> findByNameLike(String nameLike);
    List<TbUser> findByGenderAndRole(@Param("gender")String gender,@Param("role")Long role);
}
